package com.da.web.school_class.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.da.cache.MyCache;
import com.da.web.school_class.entity.AssignClass;
import com.da.web.school_class.entity.AssignClassParm;
import com.da.web.school_class.entity.ListParm;
import com.da.web.school_class.entity.SchoolClass;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

/**
 * @author da
 * @time 2023/12/5 下午 5:23
 */
@CacheNamespace(implementation = MyCache.class, eviction = MyCache.class)
public interface SchoolClassMapper extends BaseMapper<SchoolClass> {
    //编辑回显
    SchoolClass getSchoolClassById(@Param("classId") Long classId);

    //查询列表
    IPage<SchoolClass> getList(IPage<SchoolClass> page, @Param("parm") ListParm parm);

    //分配宿舍,查询班级列表
    IPage<AssignClass> getAssignClass(IPage<AssignClass> page, @Param("parm") AssignClassParm parm);
}
